package com.goktech.mapper;

import com.goktech.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BookMapper {
    public int insertBook(Book b);
    public int updateBook(Book b);
    public int deleteBook(Book b);
    public Book findByBookId(Book b);
    public List<Map<String,Object>> findByAll(@Param("begin") int begin, @Param("end") int end);
    public List<Map<String,Object>> findLikeBookName(Book b);
    public List<Map<String,Object>> findLikeAuthor(Book b);
    public Map<String,Object> findByMapOne(Book b);
    public Book findByName(Book b);
}
